package ne.aishuyuan.video.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @ClassName: PlayMedia
 * @Description: 播放清单
 * @Author: clj
 * @Date: 2021/11/2 16:09
 */
@Data
public class PlayMedia {
    /**
     * 播放管理id
     */
    private String id;
    /**
     * 清单名称
     */
    private String name;

    /**
     * 播放类型，LOCAL_PLAY:点播本地播放，LIVE:在线
     */
    private String type;

    /**
     * 播放规则 COMMON：连续播放，TIMING：定时,RIGHTNOW:立即
     */
    private String playRule;


    /**
     * 播放方式，ORDERED:顺序，RANDOM：随机
     */
    private String playPattern;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime playStartTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime playEndTime;

    private List<Media> resourceVos;
}
